package study.member.sungil.study2;

public class ExtendsMain {
	
	public static void main(String[] args) {
		ParentClss pc = new ParentClss();
		ChildClss cc = new ChildClss();
		ParentClss pcCasting;
		pc.ovverideEx();
		cc.ovverideEx();
		pcCasting = (ParentClss)cc;
		pcCasting = (ChildClss)cc;
		cc = (ChildClss) pcCasting;
		cc.childMethod();
		pcCasting.ovverideEx();
		cc = (ChildClss)pcCasting;
		
		
	}
}
